package com.thwj.project.biz.domain;

    import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.thwj.common.annotation.Excel;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

;

/**
 * 动态点赞对象 biz_dynamic_good
 *
 * @author generate
 * @date 2023-08-15
 */

@Getter
@Setter
@ToString
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("biz_dynamic_good")
public class DynamicGood extends Model<DynamicGood>{
private static final long serialVersionUID=1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 动态id */
            @Excel(name = "动态id")
    private Long dynamicId;

            private Long authorUserId;

    /** 用户主键 */
            @Excel(name = "用户主键")
    private Long userId;

    /** 是否有效业务(1:有效 0无效) */
            @Excel(name = "是否有效业务(1:有效 0无效)")
    private Boolean valid;

    /** 创建时间 */
            @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
            @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;




    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
